

package com.hex.ds.code.detection.publish.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.validation.annotation.Validated;

/**
 * 脚本发布结果
 *
 * @author Wang zhihao
 * @date 2023-09-13 18:17:51
 */
@Data
@Validated
@TableName("TD_SCRIPT_PUBLISH_RESULT")
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "脚本发布结果")
public class ScriptPublishResultEntity extends Model<ScriptPublishResultEntity> {
    private static final long serialVersionUID = 1L;

    /**
     * 脚本发布结果ID
     */
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "脚本发布结果ID")
    private String id;

    /**
     * 脚本发布清单ID
     */
    @ApiModelProperty(value = "脚本发布清单ID")
    private String scriptPublishListId;

    /**
     * 备份源(库表名/文件路径)
     */
    @ApiModelProperty(value = "备份源(库表名/文件路径)")
    private String originalPath;

    /**
     * 分区字段(若无分区相关则为空)
     */
    @ApiModelProperty(value = "分区字段(若无分区相关则为空)")
    private String partition;

}